home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
Tutorial
/
Cookbook
/
17.plot
/
plotview.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-06-12
|
44KB
|
1,236 lines
/* plotview.c generated from plotview.psw
by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989
*/
#include <dpsclient/dpsfriends.h>
#include <string.h>
#line 1 "plotview.psw"
#line 10 "plotview.c"
void createPSDefs( void )
{
typedef struct {
unsigned char tokenType;
unsigned char topLevelCount;
unsigned short nBytes;
DPSBinObjGeneric obj0;
DPSBinObjGeneric obj1;
DPSBinObjGeneric obj2;
DPSBinObjGeneric obj3;
DPSBinObjGeneric obj4;
DPSBinObjGeneric obj5;
DPSBinObjGeneric obj6;
DPSBinObjGeneric obj7;
DPSBinObjGeneric obj8;
DPSBinObjGeneric obj9;
DPSBinObjGeneric obj10;
DPSBinObjGeneric obj11;
DPSBinObjGeneric obj12;
DPSBinObjGeneric obj13;
DPSBinObjGeneric obj14;
DPSBinObjGeneric obj15;
DPSBinObjGeneric obj16;
DPSBinObjGeneric obj17;
DPSBinObjGeneric obj18;
DPSBinObjGeneric obj19;
DPSBinObjGeneric obj20;
DPSBinObjGeneric obj21;
DPSBinObjGeneric obj22;
DPSBinObjGeneric obj23;
DPSBinObjReal obj24;
DPSBinObjGeneric obj25;
DPSBinObjGeneric obj26;
char obj27[8];
char obj28[18];
char obj29[4];
char obj30[20];
char obj31[4];
char obj32[3];
char obj33[4];
char obj34[4];
} _dpsQ;
static const _dpsQ _dpsF = {
DPS_DEF_TOKENTYPE, 21, 285,
{DPS_LITERAL|DPS_NAME, 0, 4, 277}, /* strx */
{DPS_LITERAL|DPS_INT, 0, 0, 20},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 165}, /* string */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
{DPS_LITERAL|DPS_NAME, 0, 4, 273}, /* stry */
{DPS_LITERAL|DPS_INT, 0, 0, 20},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 165}, /* string */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
{DPS_LITERAL|DPS_NAME, 0, 3, 270}, /* str */
{DPS_LITERAL|DPS_INT, 0, 0, 20},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 165}, /* string */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
{DPS_LITERAL|DPS_NAME, 0, 4, 266}, /* divx */
{DPS_LITERAL|DPS_STRING, 0, 20, 246},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
{DPS_LITERAL|DPS_NAME, 0, 4, 242}, /* divy */
{DPS_LITERAL|DPS_STRING, 0, 18, 224},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
{DPS_LITERAL|DPS_NAME, 0, 8, 216}, /* plotfont */
{DPS_EXEC|DPS_ARRAY, 0, 6, 168},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 139}, /* scale */
{DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 211}, /* Times-Roman */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 67}, /* findfont */
{DPS_LITERAL|DPS_REAL, 0, 0, 0.03},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 140}, /* scalefont */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 149}, /* setfont */
{'p','l','o','t','f','o','n','t'},
{' ','p','e','r',' ','d','i','v','i','s','i','o','n',' ','o','n',' ','y'},
{'d','i','v','y'},
{' ','p','e','r',' ','d','i','v','i','s','i','o','n',' ','o','n',' ','x',',',' '},
{'d','i','v','x'},
{'s','t','r'},
{'s','t','r','y'},
{'s','t','r','x'},
}; /* _dpsQ */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,285);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 16 "plotview.psw"
#line 99 "plotview.c"
void PSDrawAxis(float ac, float x, float y, float w, float h)
{
typedef struct {
unsigned char tokenType;
unsigned char topLevelCount;
unsigned short nBytes;
DPSBinObjReal obj0;
DPSBinObjGeneric obj1;
DPSBinObjReal obj2;
DPSBinObjGeneric obj3;
DPSBinObjReal obj4;
DPSBinObjReal obj5;
DPSBinObjGeneric obj6;
DPSBinObjReal obj7;
DPSBinObjGeneric obj8;
DPSBinObjReal obj9;
DPSBinObjReal obj10;
DPSBinObjGeneric obj11;
DPSBinObjReal obj12;
DPSBinObjReal obj13;
DPSBinObjReal obj14;
DPSBinObjGeneric obj15;
DPSBinObjGeneric obj16;
DPSBinObjGeneric obj17;
DPSBinObjReal obj18;
DPSBinObjReal obj19;
DPSBinObjReal obj20;
DPSBinObjReal obj21;
DPSBinObjGeneric obj22;
DPSBinObjGeneric obj23;
DPSBinObjGeneric obj24;
DPSBinObjGeneric obj25;
DPSBinObjReal obj26;
DPSBinObjReal obj27;
DPSBinObjGeneric obj28;
DPSBinObjReal obj29;
DPSBinObjGeneric obj30;
DPSBinObjGeneric obj31;
DPSBinObjGeneric obj32;
DPSBinObjGeneric obj33;
DPSBinObjReal obj34;
DPSBinObjReal obj35;
DPSBinObjGeneric obj36;
DPSBinObjReal obj37;
DPSBinObjReal obj38;
DPSBinObjReal obj39;
DPSBinObjGeneric obj40;
DPSBinObjGeneric obj41;
DPSBinObjGeneric obj42;
DPSBinObjGeneric obj43;
DPSBinObjReal obj44;
DPSBinObjReal obj45;
DPSBinObjGeneric obj46;
DPSBinObjReal obj47;
DPSBinObjReal obj48;
DPSBinObjGeneric obj49;
DPSBinObjGeneric obj50;
DPSBinObjGeneric obj51;
DPSBinObjGeneric obj52;
DPSBinObjGeneric obj53;
DPSBinObjGeneric obj54;
DPSBinObjGeneric obj55;
DPSBinObjGeneric obj56;
DPSBinObjGeneric obj57;
DPSBinObjGeneric obj58;
DPSBinObjGeneric obj59;
DPSBinObjGeneric obj60;
DPSBinObjReal obj61;
DPSBinObjReal obj62;
DPSBinObjReal obj63;
DPSBinObjGeneric obj64;
DPSBinObjGeneric obj65;
DPSBinObjReal obj66;
DPSBinObjGeneric obj67;
DPSBinObjGeneric obj68;
DPSBinObjReal obj69;
DPSBinObjGeneric obj70;
DPSBinObjReal obj71;
DPSBinObjReal obj72;
DPSBinObjGeneric obj73;
DPSBinObjReal obj74;
DPSBinObjGeneric obj75;
DPSBinObjGeneric obj76;
DPSBinObjGeneric obj77;
DPSBinObjGeneric obj78;
DPSBinObjReal obj79;
DPSBinObjReal obj80;
DPSBinObjReal obj81;
DPSBinObjGeneric obj82;
DPSBinObjGeneric obj83;
DPSBinObjReal obj84;
DPSBinObjReal obj85;
DPSBinObjGeneric obj86;
DPSBinObjGeneric obj87;
DPSBinObjGeneric obj88;
DPSBinObjGeneric obj89;
DPSBinObjGeneric obj90;
DPSBinObjReal obj91;
DPSBinObjReal obj92;
DPSBinObjGeneric obj93;
DPSBinObjReal obj94;
DPSBinObjReal obj95;
DPSBinObjGeneric obj96;
DPSBinObjGeneric obj97;
DPSBinObjGeneric obj98;
DPSBinObjGeneric obj99;
DPSBinObjGeneric obj100;
DPSBinObjGeneric obj101;
DPSBinObjGeneric obj102;
DPSBinObjGeneric obj103;
DPSBinObjGeneric obj104;
DPSBinObjGeneric obj105;
DPSBinObjGeneric obj106;
DPSBinObjGeneric obj107;
char obj108[3];
char obj109[8];
} _dpsQ;
static const _dpsQ _dpsStat = {
DPS_DEF_TOKENTYPE, 108, 879,
{DPS_LITERAL|DPS_REAL, 0, 0, 0.0},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 155}, /* setlinewidth */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: ac */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167}, /* stroke */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_LITERAL|DPS_REAL, 0, 0, 0.04},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 108}, /* mul */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78}, /* gsave */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_EXEC|DPS_NAME, 0, 8, 867}, /* plotfont */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_EXEC|DPS_NAME, 0, 3, 864}, /* str */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 49}, /* cvs */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77}, /* grestore */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_LITERAL|DPS_REAL, 0, 0, 0.04},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 108}, /* mul */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78}, /* gsave */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_EXEC|DPS_NAME, 0, 8, 867}, /* plotfont */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_EXEC|DPS_NAME, 0, 3, 864}, /* str */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 49}, /* cvs */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 56}, /* dup */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 166}, /* stringwidth */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62}, /* exch */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62}, /* exch */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 134}, /* rmoveto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77}, /* grestore */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_LITERAL|DPS_REAL, 0, 0, 0.01},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 108}, /* mul */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78}, /* gsave */
{DPS_LITERAL|DPS_REAL, 0, 0, 90.0},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 136}, /* rotate */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_EXEC|DPS_NAME, 0, 8, 867}, /* plotfont */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_EXEC|DPS_NAME, 0, 3, 864}, /* str */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 49}, /* cvs */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77}, /* grestore */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_LITERAL|DPS_REAL, 0, 0, 0.01},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 108}, /* mul */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78}, /* gsave */
{DPS_LITERAL|DPS_INT, 0, 0, 90},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 136}, /* rotate */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_EXEC|DPS_NAME, 0, 8, 867}, /* plotfont */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_EXEC|DPS_NAME, 0, 3, 864}, /* str */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 49}, /* cvs */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 56}, /* dup */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 166}, /* stringwidth */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62}, /* exch */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62}, /* exch */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 134}, /* rmoveto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77}, /* grestore */
{'s','t','r'},
{'p','l','o','t','f','o','n','t'},
}; /* _dpsQ */
_dpsQ _dpsF; /* local copy */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
_dpsF = _dpsStat; /* assign automatic variable */
_dpsP[2].val.realVal = ac;
_dpsP[5].val.realVal =
_dpsP[9].val.realVal =
_dpsP[12].val.realVal =
_dpsP[18].val.realVal =
_dpsP[29].val.realVal =
_dpsP[34].val.realVal =
_dpsP[47].val.realVal =
_dpsP[61].val.realVal =
_dpsP[79].val.realVal = x;
_dpsP[7].val.realVal =
_dpsP[10].val.realVal =
_dpsP[13].val.realVal =
_dpsP[19].val.realVal =
_dpsP[37].val.realVal =
_dpsP[66].val.realVal =
_dpsP[74].val.realVal =
_dpsP[84].val.realVal =
_dpsP[94].val.realVal = y;
_dpsP[4].val.realVal =
_dpsP[26].val.realVal =
_dpsP[35].val.realVal =
_dpsP[44].val.realVal =
_dpsP[48].val.realVal =
_dpsP[62].val.realVal =
_dpsP[72].val.realVal =
_dpsP[80].val.realVal =
_dpsP[92].val.realVal = w;
_dpsP[14].val.realVal =
_dpsP[20].val.realVal =
_dpsP[27].val.realVal =
_dpsP[38].val.realVal =
_dpsP[45].val.realVal =
_dpsP[71].val.realVal =
_dpsP[85].val.realVal =
_dpsP[91].val.realVal =
_dpsP[95].val.realVal = h;
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,879);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 53 "plotview.psw"
#line 379 "plotview.c"
void PSWriteXLabel(float gray, float x, float y, float w, float h, const char *lab)
{
typedef struct {
unsigned char tokenType;
unsigned char sizeFlag;
unsigned short topLevelCount;
unsigned long nBytes;
DPSBinObjGeneric obj0;
DPSBinObjReal obj1;
DPSBinObjGeneric obj2;
DPSBinObjReal obj3;
DPSBinObjReal obj4;
DPSBinObjReal obj5;
DPSBinObjGeneric obj6;
DPSBinObjGeneric obj7;
DPSBinObjReal obj8;
DPSBinObjReal obj9;
DPSBinObjReal obj10;
DPSBinObjGeneric obj11;
DPSBinObjGeneric obj12;
DPSBinObjGeneric obj13;
DPSBinObjReal obj14;
DPSBinObjReal obj15;
DPSBinObjGeneric obj16;
DPSBinObjGeneric obj17;
DPSBinObjGeneric obj18;
DPSBinObjReal obj19;
DPSBinObjGeneric obj20;
DPSBinObjGeneric obj21;
DPSBinObjGeneric obj22;
DPSBinObjGeneric obj23;
DPSBinObjGeneric obj24;
DPSBinObjGeneric obj25;
DPSBinObjGeneric obj26;
char obj27[8];
} _dpsQ;
static const _dpsQ _dpsStat = {
DPS_DEF_TOKENTYPE, 0, 27, 232,
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78}, /* gsave */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: gray */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_LITERAL|DPS_REAL, 0, 0, 2.0},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 54}, /* div */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_LITERAL|DPS_REAL, 0, 0, 0.04},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 108}, /* mul */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_EXEC|DPS_NAME, 0, 8, 216}, /* plotfont */
{DPS_LITERAL|DPS_STRING, 0, 0, 224}, /* param lab */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 166}, /* stringwidth */
{DPS_LITERAL|DPS_REAL, 0, 0, 2.0},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 54}, /* div */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
{DPS_LITERAL|DPS_INT, 0, 0, 0},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 134}, /* rmoveto */
{DPS_LITERAL|DPS_STRING, 0, 0, 224}, /* param lab */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77}, /* grestore */
{'p','l','o','t','f','o','n','t'},
}; /* _dpsQ */
_dpsQ _dpsF; /* local copy */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
register int _dps_offset = 224;
_dpsF = _dpsStat; /* assign automatic variable */
_dpsP[1].val.realVal = gray;
_dpsP[3].val.realVal = x;
_dpsP[8].val.realVal = y;
_dpsP[4].val.realVal =
_dpsP[14].val.realVal = w;
_dpsP[9].val.realVal =
_dpsP[15].val.realVal = h;
_dpsP[17].length =
_dpsP[24].length = strlen(lab);
_dpsP[24].val.stringVal = _dps_offset;
_dps_offset += (_dpsP[24].length + 3) & ~3;
_dpsP[17].val.stringVal = _dps_offset;
_dps_offset += (_dpsP[17].length + 3) & ~3;
_dpsF.nBytes = _dps_offset+8;
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,232);
DPSWriteStringChars(_dpsCurCtxt, (char *)lab, _dpsP[24].length);
DPSWriteStringChars(_dpsCurCtxt, (char *)pad, ~(_dpsP[24].length + 3) & 3);
DPSWriteStringChars(_dpsCurCtxt, (char *)lab, _dpsP[17].length);
DPSWriteStringChars(_dpsCurCtxt, (char *)pad, ~(_dpsP[17].length + 3) & 3);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 67 "plotview.psw"
#line 479 "plotview.c"
void PSWriteYLabel(float gray, float x, float y, float w, float h, const char *lab)
{
typedef struct {
unsigned char tokenType;
unsigned char sizeFlag;
unsigned short topLevelCount;
unsigned long nBytes;
DPSBinObjGeneric obj0;
DPSBinObjReal obj1;
DPSBinObjGeneric obj2;
DPSBinObjReal obj3;
DPSBinObjReal obj4;
DPSBinObjReal obj5;
DPSBinObjGeneric obj6;
DPSBinObjGeneric obj7;
DPSBinObjReal obj8;
DPSBinObjReal obj9;
DPSBinObjReal obj10;
DPSBinObjGeneric obj11;
DPSBinObjGeneric obj12;
DPSBinObjGeneric obj13;
DPSBinObjReal obj14;
DPSBinObjGeneric obj15;
DPSBinObjReal obj16;
DPSBinObjReal obj17;
DPSBinObjGeneric obj18;
DPSBinObjGeneric obj19;
DPSBinObjGeneric obj20;
DPSBinObjReal obj21;
DPSBinObjGeneric obj22;
DPSBinObjGeneric obj23;
DPSBinObjGeneric obj24;
DPSBinObjGeneric obj25;
DPSBinObjGeneric obj26;
DPSBinObjGeneric obj27;
DPSBinObjGeneric obj28;
DPSBinObjGeneric obj29;
char obj30[8];
} _dpsQ;
static const _dpsQ _dpsStat = {
DPS_DEF_TOKENTYPE, 0, 30, 256,
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78}, /* gsave */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: gray */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_LITERAL|DPS_REAL, 0, 0, 0.01},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 108}, /* mul */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_LITERAL|DPS_REAL, 0, 0, 2.0},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 54}, /* div */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_LITERAL|DPS_REAL, 0, 0, 90.0},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 136}, /* rotate */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_EXEC|DPS_NAME, 0, 8, 240}, /* plotfont */
{DPS_LITERAL|DPS_STRING, 0, 0, 248}, /* param lab */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 166}, /* stringwidth */
{DPS_LITERAL|DPS_REAL, 0, 0, 2.0},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 54}, /* div */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
{DPS_LITERAL|DPS_INT, 0, 0, 0},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62}, /* exch */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 134}, /* rmoveto */
{DPS_LITERAL|DPS_STRING, 0, 0, 248}, /* param lab */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77}, /* grestore */
{'p','l','o','t','f','o','n','t'},
}; /* _dpsQ */
_dpsQ _dpsF; /* local copy */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
register int _dps_offset = 248;
_dpsF = _dpsStat; /* assign automatic variable */
_dpsP[1].val.realVal = gray;
_dpsP[3].val.realVal = x;
_dpsP[8].val.realVal = y;
_dpsP[4].val.realVal =
_dpsP[17].val.realVal = w;
_dpsP[9].val.realVal =
_dpsP[16].val.realVal = h;
_dpsP[19].length =
_dpsP[27].length = strlen(lab);
_dpsP[27].val.stringVal = _dps_offset;
_dps_offset += (_dpsP[27].length + 3) & ~3;
_dpsP[19].val.stringVal = _dps_offset;
_dps_offset += (_dpsP[19].length + 3) & ~3;
_dpsF.nBytes = _dps_offset+8;
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,256);
DPSWriteStringChars(_dpsCurCtxt, (char *)lab, _dpsP[27].length);
DPSWriteStringChars(_dpsCurCtxt, (char *)pad, ~(_dpsP[27].length + 3) & 3);
DPSWriteStringChars(_dpsCurCtxt, (char *)lab, _dpsP[19].length);
DPSWriteStringChars(_dpsCurCtxt, (char *)pad, ~(_dpsP[19].length + 3) & 3);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 82 "plotview.psw"
#line 585 "plotview.c"
void PSEnableInstance(float instcol)
{
typedef struct {
unsigned char tokenType;
unsigned char topLevelCount;
unsigned short nBytes;
DPSBinObjGeneric obj0;
DPSBinObjGeneric obj1;
DPSBinObjGeneric obj2;
DPSBinObjReal obj3;
DPSBinObjGeneric obj4;
DPSBinObjReal obj5;
DPSBinObjGeneric obj6;
char obj7[11];
} _dpsQ;
static const _dpsQ _dpsStat = {
DPS_DEF_TOKENTYPE, 7, 71,
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78}, /* gsave */
{DPS_LITERAL|DPS_BOOL, 0, 0, 1},
{DPS_EXEC|DPS_NAME, 0, 11, 56}, /* setinstance */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: instcol */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
{DPS_LITERAL|DPS_REAL, 0, 0, 0.0},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 155}, /* setlinewidth */
{'s','e','t','i','n','s','t','a','n','c','e'},
}; /* _dpsQ */
_dpsQ _dpsF; /* local copy */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
_dpsF = _dpsStat; /* assign automatic variable */
_dpsP[3].val.realVal = instcol;
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,71);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 89 "plotview.psw"
#line 625 "plotview.c"
void PSDisableInstance( void )
{
typedef struct {
unsigned char tokenType;
unsigned char topLevelCount;
unsigned short nBytes;
DPSBinObjGeneric obj0;
DPSBinObjGeneric obj1;
DPSBinObjGeneric obj2;
char obj3[11];
} _dpsQ;
static const _dpsQ _dpsF = {
DPS_DEF_TOKENTYPE, 3, 39,
{DPS_LITERAL|DPS_BOOL, 0, 0, 0},
{DPS_EXEC|DPS_NAME, 0, 11, 24}, /* setinstance */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77}, /* grestore */
{'s','e','t','i','n','s','t','a','n','c','e'},
}; /* _dpsQ */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,39);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 95 "plotview.psw"
#line 652 "plotview.c"
void PSDrawCrossHair(float startx, float starty, float minx, float maxx, float miny, float maxy)
{
typedef struct {
unsigned char tokenType;
unsigned char topLevelCount;
unsigned short nBytes;
DPSBinObjGeneric obj0;
DPSBinObjGeneric obj1;
DPSBinObjGeneric obj2;
DPSBinObjGeneric obj3;
DPSBinObjGeneric obj4;
DPSBinObjGeneric obj5;
DPSBinObjReal obj6;
DPSBinObjReal obj7;
DPSBinObjGeneric obj8;
DPSBinObjReal obj9;
DPSBinObjReal obj10;
DPSBinObjGeneric obj11;
DPSBinObjReal obj12;
DPSBinObjReal obj13;
DPSBinObjGeneric obj14;
DPSBinObjReal obj15;
DPSBinObjReal obj16;
DPSBinObjGeneric obj17;
DPSBinObjGeneric obj18;
DPSBinObjReal obj19;
DPSBinObjReal obj20;
DPSBinObjGeneric obj21;
DPSBinObjReal obj22;
DPSBinObjGeneric obj23;
DPSBinObjGeneric obj24;
DPSBinObjGeneric obj25;
DPSBinObjGeneric obj26;
DPSBinObjGeneric obj27;
DPSBinObjGeneric obj28;
DPSBinObjReal obj29;
DPSBinObjReal obj30;
DPSBinObjGeneric obj31;
DPSBinObjReal obj32;
DPSBinObjReal obj33;
DPSBinObjGeneric obj34;
DPSBinObjGeneric obj35;
DPSBinObjReal obj36;
DPSBinObjGeneric obj37;
DPSBinObjGeneric obj38;
DPSBinObjReal obj39;
DPSBinObjReal obj40;
DPSBinObjGeneric obj41;
DPSBinObjReal obj42;
DPSBinObjGeneric obj43;
DPSBinObjReal obj44;
DPSBinObjGeneric obj45;
DPSBinObjGeneric obj46;
DPSBinObjGeneric obj47;
DPSBinObjGeneric obj48;
DPSBinObjGeneric obj49;
DPSBinObjGeneric obj50;
DPSBinObjGeneric obj51;
DPSBinObjReal obj52;
DPSBinObjGeneric obj53;
DPSBinObjGeneric obj54;
DPSBinObjGeneric obj55;
DPSBinObjGeneric obj56;
DPSBinObjGeneric obj57;
DPSBinObjGeneric obj58;
DPSBinObjGeneric obj59;
DPSBinObjGeneric obj60;
DPSBinObjGeneric obj61;
DPSBinObjGeneric obj62;
DPSBinObjGeneric obj63;
DPSBinObjGeneric obj64;
DPSBinObjGeneric obj65;
DPSBinObjGeneric obj66;
DPSBinObjGeneric obj67;
DPSBinObjGeneric obj68;
DPSBinObjGeneric obj69;
DPSBinObjReal obj70;
DPSBinObjGeneric obj71;
DPSBinObjGeneric obj72;
DPSBinObjGeneric obj73;
DPSBinObjGeneric obj74;
DPSBinObjGeneric obj75;
DPSBinObjGeneric obj76;
DPSBinObjGeneric obj77;
DPSBinObjGeneric obj78;
DPSBinObjGeneric obj79;
DPSBinObjGeneric obj80;
DPSBinObjGeneric obj81;
DPSBinObjGeneric obj82;
DPSBinObjReal obj83;
DPSBinObjGeneric obj84;
DPSBinObjGeneric obj85;
DPSBinObjGeneric obj86;
DPSBinObjGeneric obj87;
DPSBinObjGeneric obj88;
DPSBinObjReal obj89;
DPSBinObjGeneric obj90;
DPSBinObjGeneric obj91;
DPSBinObjGeneric obj92;
char obj93[4];
char obj94[1];
char obj95[4];
char obj96[6];
char obj97[7];
} _dpsQ;
static const _dpsQ _dpsStat = {
DPS_DEF_TOKENTYPE, 50, 770,
{DPS_LITERAL|DPS_NAME, 0, 7, 759}, /* doright */
{DPS_EXEC|DPS_ARRAY, 0, 10, 664},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
{DPS_LITERAL|DPS_NAME, 0, 6, 753}, /* doleft */
{DPS_EXEC|DPS_ARRAY, 0, 31, 416},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: startx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: miny */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: startx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxy */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: minx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: starty */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: starty */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167}, /* stroke */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: startx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: starty */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 56}, /* dup */
{DPS_LITERAL|DPS_REAL, 0, 0, .01},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 108}, /* mul */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78}, /* gsave */
{DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 199}, /* Courier */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 67}, /* findfont */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: minx */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxy */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: miny */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 139}, /* scale */
{DPS_LITERAL|DPS_REAL, 0, 0, 0.05},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 140}, /* scalefont */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 149}, /* setfont */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: minx */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_LITERAL|DPS_REAL, 0, 0, 2.0},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 54}, /* div */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: startx */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 102}, /* lt */
{DPS_EXEC|DPS_ARRAY, 0, 1, 408},
{DPS_EXEC|DPS_ARRAY, 0, 1, 400},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 85}, /* ifelse */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77}, /* grestore */
{DPS_EXEC|DPS_NAME, 0, 7, 759}, /* doright */
{DPS_EXEC|DPS_NAME, 0, 6, 753}, /* doleft */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: starty */
{DPS_EXEC|DPS_NAME, 0, 4, 744}, /* stry */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 49}, /* cvs */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 56}, /* dup */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 166}, /* stringwidth */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62}, /* exch */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62}, /* exch */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 134}, /* rmoveto */
{DPS_LITERAL|DPS_STRING, 0, 1, 748},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 56}, /* dup */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 166}, /* stringwidth */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62}, /* exch */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62}, /* exch */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 134}, /* rmoveto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: startx */
{DPS_EXEC|DPS_NAME, 0, 4, 749}, /* strx */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 49}, /* cvs */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 56}, /* dup */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 166}, /* stringwidth */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62}, /* exch */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62}, /* exch */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 134}, /* rmoveto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: startx */
{DPS_EXEC|DPS_NAME, 0, 4, 749}, /* strx */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 49}, /* cvs */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_LITERAL|DPS_STRING, 0, 1, 748},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: starty */
{DPS_EXEC|DPS_NAME, 0, 4, 744}, /* stry */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 49}, /* cvs */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{'s','t','r','y'},
{','},
{'s','t','r','x'},
{'d','o','l','e','f','t'},
{'d','o','r','i','g','h','t'},
}; /* _dpsQ */
_dpsQ _dpsF; /* local copy */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
_dpsF = _dpsStat; /* assign automatic variable */
_dpsP[83].val.realVal =
_dpsP[70].val.realVal =
_dpsP[6].val.realVal =
_dpsP[9].val.realVal =
_dpsP[19].val.realVal =
_dpsP[44].val.realVal = startx;
_dpsP[89].val.realVal =
_dpsP[52].val.realVal =
_dpsP[13].val.realVal =
_dpsP[16].val.realVal =
_dpsP[20].val.realVal = starty;
_dpsP[12].val.realVal =
_dpsP[30].val.realVal =
_dpsP[40].val.realVal = minx;
_dpsP[15].val.realVal =
_dpsP[29].val.realVal =
_dpsP[39].val.realVal = maxx;
_dpsP[7].val.realVal =
_dpsP[33].val.realVal = miny;
_dpsP[10].val.realVal =
_dpsP[32].val.realVal = maxy;
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,770);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 139 "plotview.psw"
#line 892 "plotview.c"
void PSOverlayBox(float minx, float maxx, float miny, float maxy)
{
typedef struct {
unsigned char tokenType;
unsigned char topLevelCount;
unsigned short nBytes;
DPSBinObjGeneric obj0;
DPSBinObjGeneric obj1;
DPSBinObjGeneric obj2;
DPSBinObjReal obj3;
DPSBinObjReal obj4;
DPSBinObjGeneric obj5;
DPSBinObjReal obj6;
DPSBinObjReal obj7;
DPSBinObjGeneric obj8;
DPSBinObjReal obj9;
DPSBinObjReal obj10;
DPSBinObjGeneric obj11;
DPSBinObjReal obj12;
DPSBinObjReal obj13;
DPSBinObjGeneric obj14;
DPSBinObjGeneric obj15;
DPSBinObjGeneric obj16;
} _dpsQ;
static const _dpsQ _dpsStat = {
DPS_DEF_TOKENTYPE, 17, 140,
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78}, /* gsave */
{DPS_LITERAL|DPS_INT, 0, 0, 0},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 155}, /* setlinewidth */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: minx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: miny */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: minx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxy */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: miny */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxy */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167}, /* stroke */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77}, /* grestore */
}; /* _dpsQ */
_dpsQ _dpsF; /* local copy */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
_dpsF = _dpsStat; /* assign automatic variable */
_dpsP[3].val.realVal =
_dpsP[6].val.realVal = minx;
_dpsP[9].val.realVal =
_dpsP[12].val.realVal = maxx;
_dpsP[4].val.realVal =
_dpsP[10].val.realVal = miny;
_dpsP[7].val.realVal =
_dpsP[13].val.realVal = maxy;
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,140);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 151 "plotview.psw"
#line 957 "plotview.c"
void PSGridWrite(float textcol, float gx, float gy, float minx, float maxx, float miny, float maxy)
{
typedef struct {
unsigned char tokenType;
unsigned char topLevelCount;
unsigned short nBytes;
DPSBinObjGeneric obj0;
DPSBinObjReal obj1;
DPSBinObjGeneric obj2;
DPSBinObjReal obj3;
DPSBinObjReal obj4;
DPSBinObjGeneric obj5;
DPSBinObjReal obj6;
DPSBinObjGeneric obj7;
DPSBinObjReal obj8;
DPSBinObjGeneric obj9;
DPSBinObjReal obj10;
DPSBinObjReal obj11;
DPSBinObjGeneric obj12;
DPSBinObjReal obj13;
DPSBinObjGeneric obj14;
DPSBinObjReal obj15;
DPSBinObjGeneric obj16;
DPSBinObjGeneric obj17;
DPSBinObjReal obj18;
DPSBinObjReal obj19;
DPSBinObjGeneric obj20;
DPSBinObjReal obj21;
DPSBinObjReal obj22;
DPSBinObjGeneric obj23;
DPSBinObjGeneric obj24;
DPSBinObjReal obj25;
DPSBinObjGeneric obj26;
DPSBinObjGeneric obj27;
DPSBinObjGeneric obj28;
DPSBinObjGeneric obj29;
DPSBinObjGeneric obj30;
DPSBinObjReal obj31;
DPSBinObjGeneric obj32;
DPSBinObjGeneric obj33;
DPSBinObjGeneric obj34;
DPSBinObjGeneric obj35;
DPSBinObjGeneric obj36;
DPSBinObjGeneric obj37;
char obj38[4];
char obj39[3];
char obj40[4];
char obj41[8];
} _dpsQ;
static const _dpsQ _dpsStat = {
DPS_DEF_TOKENTYPE, 38, 327,
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 78}, /* gsave */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: textcol */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: minx */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_LITERAL|DPS_REAL, 0, 0, 0.15},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 108}, /* mul */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: minx */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxy */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: miny */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_LITERAL|DPS_REAL, 0, 0, 1.01},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 108}, /* mul */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: miny */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxx */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: minx */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: maxy */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: miny */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
{DPS_EXEC|DPS_NAME, 0, 8, 315}, /* plotfont */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: gx */
{DPS_EXEC|DPS_NAME, 0, 3, 308}, /* str */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 49}, /* cvs */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_EXEC|DPS_NAME, 0, 4, 311}, /* divx */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: gy */
{DPS_EXEC|DPS_NAME, 0, 3, 308}, /* str */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 49}, /* cvs */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_EXEC|DPS_NAME, 0, 4, 304}, /* divy */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 77}, /* grestore */
{'d','i','v','y'},
{'s','t','r'},
{'d','i','v','x'},
{'p','l','o','t','f','o','n','t'},
}; /* _dpsQ */
_dpsQ _dpsF; /* local copy */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
_dpsF = _dpsStat; /* assign automatic variable */
_dpsP[1].val.realVal = textcol;
_dpsP[25].val.realVal = gx;
_dpsP[31].val.realVal = gy;
_dpsP[4].val.realVal =
_dpsP[8].val.realVal =
_dpsP[19].val.realVal = minx;
_dpsP[3].val.realVal =
_dpsP[18].val.realVal = maxx;
_dpsP[11].val.realVal =
_dpsP[15].val.realVal =
_dpsP[22].val.realVal = miny;
_dpsP[10].val.realVal =
_dpsP[21].val.realVal = maxy;
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,327);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 171 "plotview.psw"
#line 1077 "plotview.c"
void PSBox(float lc, float lw, float x, float y, float w, float h)
{
typedef struct {
unsigned char tokenType;
unsigned char topLevelCount;
unsigned short nBytes;
DPSBinObjReal obj0;
DPSBinObjGeneric obj1;
DPSBinObjReal obj2;
DPSBinObjGeneric obj3;
DPSBinObjReal obj4;
DPSBinObjReal obj5;
DPSBinObjGeneric obj6;
DPSBinObjReal obj7;
DPSBinObjReal obj8;
DPSBinObjReal obj9;
DPSBinObjGeneric obj10;
DPSBinObjGeneric obj11;
DPSBinObjReal obj12;
DPSBinObjReal obj13;
DPSBinObjGeneric obj14;
DPSBinObjReal obj15;
DPSBinObjReal obj16;
DPSBinObjGeneric obj17;
DPSBinObjGeneric obj18;
DPSBinObjReal obj19;
DPSBinObjReal obj20;
DPSBinObjGeneric obj21;
DPSBinObjReal obj22;
DPSBinObjGeneric obj23;
DPSBinObjReal obj24;
DPSBinObjReal obj25;
DPSBinObjGeneric obj26;
DPSBinObjGeneric obj27;
} _dpsQ;
static const _dpsQ _dpsStat = {
DPS_DEF_TOKENTYPE, 28, 228,
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: lc */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: lw */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 155}, /* setlinewidth */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167}, /* stroke */
}; /* _dpsQ */
_dpsQ _dpsF; /* local copy */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
_dpsF = _dpsStat; /* assign automatic variable */
_dpsP[0].val.realVal = lc;
_dpsP[2].val.realVal = lw;
_dpsP[4].val.realVal =
_dpsP[7].val.realVal =
_dpsP[12].val.realVal =
_dpsP[19].val.realVal =
_dpsP[24].val.realVal = x;
_dpsP[5].val.realVal =
_dpsP[8].val.realVal =
_dpsP[15].val.realVal =
_dpsP[22].val.realVal =
_dpsP[25].val.realVal = y;
_dpsP[13].val.realVal =
_dpsP[20].val.realVal = w;
_dpsP[9].val.realVal =
_dpsP[16].val.realVal = h;
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,228);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 184 "plotview.psw"
#line 1172 "plotview.c"
void PSfillrect(float x, float y, float xn, float yn)
{
typedef struct {
unsigned char tokenType;
unsigned char topLevelCount;
unsigned short nBytes;
DPSBinObjReal obj0;
DPSBinObjReal obj1;
DPSBinObjGeneric obj2;
DPSBinObjReal obj3;
DPSBinObjReal obj4;
DPSBinObjGeneric obj5;
DPSBinObjReal obj6;
DPSBinObjReal obj7;
DPSBinObjGeneric obj8;
DPSBinObjReal obj9;
DPSBinObjReal obj10;
DPSBinObjGeneric obj11;
DPSBinObjReal obj12;
DPSBinObjReal obj13;
DPSBinObjGeneric obj14;
DPSBinObjGeneric obj15;
} _dpsQ;
static const _dpsQ _dpsStat = {
DPS_DEF_TOKENTYPE, 16, 132,
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: yn */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: xn */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: yn */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: xn */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66}, /* fill */
}; /* _dpsQ */
_dpsQ _dpsF; /* local copy */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
_dpsF = _dpsStat; /* assign automatic variable */
_dpsP[0].val.realVal =
_dpsP[3].val.realVal =
_dpsP[12].val.realVal = x;
_dpsP[1].val.realVal =
_dpsP[10].val.realVal =
_dpsP[13].val.realVal = y;
_dpsP[6].val.realVal =
_dpsP[9].val.realVal = xn;
_dpsP[4].val.realVal =
_dpsP[7].val.realVal = yn;
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,132);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 194 "plotview.psw"